#include <REGX52.H>
#include "HC595.h"
#include "Timer.h"

unsigned char animation[]={0xFF,0x18,0x18,0x18,0xFF,0x1E,0x2B,0x29,0x29,0x29,0x19,0xFF,0xFF,0x03,0x07,0xFF,
0xFF,0x03,0x07,0x00,0x1E,0x33,0x21,0x33,0x1E,0x00,0xFB,0xFB,0xFB,0x00,0x00,0x00
};
unsigned char ani;
unsigned char offset=0;
unsigned count=0;
void main()
{
	Timer_Init();
	while(1)
	{
	 for(ani=0;ani<8;ani++)
		{
			HC595_Column(ani,animation[ani+offset]);
		}
	}
}
void Timer0_Routinue() interrupt 1
{
	count++;
	if(count==30)
	{
	  offset++;
		count=0;
	}
}
